export default class Point{
    _x = 0;
    _y = 0;
    constructor(x=0.0, y=0.0){
        this._x = x;
        this._y = y; 
    }

    get X(){
        return this._x;
    }

    set X(x){
        this._x = x;
    }
    
    get Y(){
        return this._y;
    }

    set Y(y){
        this._y = y;
    }

    distance(pt){
        return Math.sqrt(Math.pow(this._x-pt.X, 2.0)+Math.pow(this._y-pt.Y, 2.0));
    }
}
